package cn.jilian.meta.handler.support;

import java.io.IOException;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import cn.jilian.meta.handler.domain.Expression;

public class ExpressionSerializer extends JsonSerializer<Expression> {

	@Override
	public void serialize(Expression value, JsonGenerator gen, SerializerProvider serializers)
			throws IOException, JsonProcessingException {
		gen.writeRawValue(value.getContent());
		
	}
}
